<template>
  <div class="box">
    <router-link to="/card_rz02">
      <el-button type="primary">写日志</el-button>
    </router-link>

    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="公告" name="first">
        <div class="select-box">
          <div class="select-group">
            <label style=" color: #999;
    margin-right: 5px;">发起人</label>
            <el-select v-model="value" placeholder="请选择">
              <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
            </el-select>
          </div>
          <div class="select-group">
            <label style=" color: #999;
    margin-right: 5px;">提交时间</label>
            <el-date-picker v-model="value1" type="datetime" placeholder="选择日期时间"></el-date-picker>
          </div>
          <div class="select-group">
            <label style=" color: #999;
    margin-right: 5px;">类型</label>
            <el-select v-model="value" placeholder="请选择">
              <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
            </el-select>
          </div>
        </div>
        <!-- card -->
        <crads></crads>
      </el-tab-pane>
      <el-tab-pane label="我发出的日志" name="myrz"></el-tab-pane>
      <el-tab-pane label="我收到的" name="mycell"></el-tab-pane>
      <el-tab-pane label="未读" name="mynotewel"></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import crads from "../Cards/cards_rz";
export default {
  name: "",
  data() {
    return {
      list: [],
      activeName: "first",
      options: [],
      value: "",
      value1: "",
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
  mounted() {},
  components: { crads },
};
</script>


<style scoped lang='scss'>
.box {
  padding: 0 30px;
  width: 950px;

  border: 2px solid #f2f1f1;
  position: relative;
  border-radius: 10px;

  .el-button {
    height: 30px;
    padding: 5px 10px;
    position: absolute;
    top: 5px;
    right: 30px;
    z-index: 999;
  }
  .select-box {
    margin: 10px 0 2px;
    max-width: 900px;

    .select-group {
      margin-right: 10px;
      display: inline-block;
      margin-bottom: 10px;
    }
  }

  // .select-box {
  //   margin-top: 22px;
  //   margin-bottom: 20px;
  //   max-width: 855px;
  //   overflow: hidden;
  //   .select-group {
  //     margin-bottom: 12px;
  //     width: 190px;
  //     float: left;
  //   }
  // }
}
</style>
